Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use atomic flag to prevent flush_if_pending from reading unlocked command_mem. #103298

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Feb 25, 2025

See #102812 (comment)

flush_if_pending was reading command_mem.size() without locking CommandQueueMT mutex, this change replaces this read with atomic bool flag.

@bruvzg bruvzg added this to the 4.4 milestone Feb 25, 2025
@bruvzg bruvzg requested a review from a team as a code owner February 25, 2025 22:03
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this pro-actively to get it tested in 4.4.rc2, and it was also confirmed working in #102812 (comment).

@akien-mga akien-mga merged commit 01545c9 into godotengine:master Feb 25, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants